package com.mzhmxh.service.impl;

import com.mzhmxh.mapper.SmbmsProvidermapper;
import com.mzhmxh.pojo.SmbmsProvider;
import com.mzhmxh.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author LiJinCheng
 * @Date 2020/7/11 6:35 下午
 * @Version 1.0
 * @package com.mzhmxh.service.impl
 **/
@Service
@Transactional
public class ProviderServiceImpl implements ProviderService {
    @Autowired
    private SmbmsProvidermapper providermapper;

    @Override
    public List<SmbmsProvider> getList() {
        return providermapper.getList();
    }

    @Override
    public SmbmsProvider selectByPrimaryKey(Long id) {
        return providermapper.selectByPrimaryKey(id);
    }

    @Override
    public boolean add(SmbmsProvider provider) {
        return providermapper.add(provider);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return providermapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<Map<String, Object>> getListByKey(SmbmsProvider provider) {
        return providermapper.getListByKey(provider);
    }
}
